package com.cloud2022.nacos.scheduled;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.cloud2022.nacos.scheduled
 * @date:2022/4/11
 */
@Component
public class Test {


    @Value("${k8s.test}")
    String k8s;

//    @Scheduled(cron = "0/1 * * * * ? ")

    public void run() {
        System.out.println(k8s);
    }

    @XxlJob("goodsInstorageFlagIsNull")
    public ReturnT<String> goodsInstorageFlagIsNull(String param) throws Exception {
        System.out.println("xxl_sss_k8s");
        return ReturnT.SUCCESS;
    }
}
